import { NgModule } from "@angular/core";
import { RouterModule } from "@angular/router";
import { TestComponentRenderer } from "@angular/core/testing";
import { HomeComponent } from "./home/home.component";


export const routes = [
    // {
    //     path:'',
    //     redirectTo:'home',
    //     pathMatch:'full'
    // },
    {
        path: '',
        component: HomeComponent,
        children: [
			{ path: '', redirectTo: 'user', pathMatch: 'full' },
            { path: 'user', loadChildren: '../user/user.module#UserModule' },
            { path: 'equip', loadChildren: '../equipment/equipment.module#EquipmentModule'}
			// { path: 'inventory', loadChildren: '../../bz-modules/inventory/inventory.module#InventoryModule' },
			// { path: 'basic-data', loadChildren: '../../bz-modules/basic-data/basic-data.module#BasicDataModule' },
			// { path: 'sys', loadChildren: '../../bz-modules/sys/sys.module#SysModule' }
		]
    },
    
]

@NgModule({
    imports: [RouterModule.forChild(routes)],
    exports: [RouterModule]
  })
  export class CoreRoutesModule { }